home *** CD-ROM | disk | FTP | other *** search
/ Clickx 75 / Clickx 75.iso / software / expressionweb / expressionwebv3 / ExpressionWeb_en.exe / Setup / WeNoLoc.cab / xweb.FPCLASS.ANIMATE.JS < prev    next >
Encoding:
Text File  |  2009-06-09  |  16.0 KB  |  682 lines

  1. <!--
  2.     // See KB article about changing this dynamic HTML
  3.     dynamicanimAttr = "dynamicanimation"
  4.     animCancel = "skipanim"
  5.     fpanimationPrefix = "fpAnim"
  6.     animateElements = new Array()
  7.     timeout = -1
  8.     currentElement = 0
  9.     speed = 1
  10.     stepsZoom = 8
  11.     stepsWord = 8
  12.     stepsFly = 17
  13.     stepsSpiral = 16
  14.     stepsSpiralWord = 19
  15.     stepsElastic = 32
  16.     steps = stepsZoom
  17.     step = 0
  18.     cornerPhase=0
  19.     outEffect=0
  20.     function remSuffix(str)
  21.     {
  22.         ind=str.indexOf("FP")
  23.         str = str.substring(0,ind)
  24.         return str
  25.     }
  26.     function dynAnimOut(el)
  27.     {
  28.         outEffect=1
  29.         dynAnimation(el)
  30.         outEffect=0
  31.     }
  32.     function dynAnimation(obj)
  33.     {        
  34.         animateElements = new Array()
  35.         var ms = navigator.appVersion.indexOf("MSIE")
  36.         var macness = navigator.appVersion.indexOf("Macintosh")
  37.  
  38.         ie4 = (ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >= 4)
  39.         ns6 = false
  40.         if(!ie4)
  41.         {
  42.             if((navigator.appName == "Netscape") &&
  43.                 (parseInt(navigator.appVersion.substring(0, 1)) >= 5))
  44.             {
  45.                 ns6=true
  46.                 doc_els=document.getElementsByTagName('*')
  47.             }
  48.             else if((navigator.appName == "Netscape") &&
  49.                 (parseInt(navigator.appVersion.substring(0, 1)) == 4))
  50.             {
  51.                 doc_els=document.layers
  52.             }
  53.             else
  54.                 return
  55.         }
  56.         else
  57.             doc_els=document.all
  58.         if(outEffect && !ie4)
  59.             return
  60.         if(ie4)
  61.         {
  62.             for (index=document.all.length-1; index >= document.body.sourceIndex; index--)
  63.             {
  64.                 el = document.all[index]
  65.                 if(outEffect && el != obj)
  66.                     continue
  67.                 if(outEffect)
  68.                     animationId = el.id.substring(9,el.id.length)
  69.                 else
  70.                     animationId = el.id.substring(6,el.id.length)
  71.                 animation=remSuffix(animationId)
  72.                 if(null != animation)
  73.                 {
  74.                     altcnt=0
  75.                     if(    animation == "dropWord"                ||
  76.                         animation == "flyTopRightWord"            ||
  77.                         animation == "flyBottomRightWord"        ||
  78.                         animation == "waveWords"            ||
  79.                         animation == "hopWords")
  80.                     {
  81.                         ih = el.innerHTML
  82.                         outString = ""
  83.                         i1 = 0
  84.                         iend = ih.length
  85.                         while(true)
  86.                         {
  87.                             i2 = startWord(ih, i1)
  88.                             if(i2 == -1)
  89.                             i2 = iend
  90.                             outWord(ih, i1, i2, false, "", outEffect ? obj.id : el.id)
  91.                             if(i2 == iend)
  92.                                 break
  93.                             i1 = i2
  94.                             i2 = endWord(ih, i1)
  95.                             if(i2 == -1)
  96.                                 i2 = iend
  97.                             if (animation == "waveWords")
  98.                                 outWordAlt(ih, i1, i2, true, animation, altcnt)
  99.                             else
  100.                                 outWord(ih, i1, i2, true, (outEffect ? "Out" : "") + animation,
  101.                                     outEffect ?  obj.id : el.id)
  102.  
  103.                             if(i2 == iend)
  104.                                 break
  105.                             i1 = i2
  106.                             altcnt++
  107.                         }
  108.                         document.all[index].innerHTML = outString
  109.                         document.all[index].style.posLeft = 0
  110.                         document.all[index].setAttribute(animCancel, true)
  111.                         document.all[index].style.visibility="visible"
  112.                     }
  113.                 }
  114.             }
  115.         }
  116.         i = 0
  117.         for (index=0; index < doc_els.length; index++)
  118.         {
  119.             el = doc_els[index]
  120.             if(0 != el.id.indexOf(fpanimationPrefix))
  121.                 continue
  122.             if (ie4)
  123.             {
  124.                 elprops=el.style
  125.                 scrollOffsetTop=document.body.scrollTop
  126.                 docHeight=document.body.offsetHeight
  127.                 docWidth=document.body.offsetWidth
  128.                 elW=100
  129.                 elH=el.offsetHeight
  130.             }
  131.             else
  132.             {
  133.                 scrollOffsetTop=window.pageYOffset
  134.                 docHeight=window.innerHeight
  135.                 docWidth=window.innerWidth
  136.                 if (ns6)
  137.                 {
  138.                     elprops=el.style
  139.                     elW=100
  140.                     elH=el.offsetHeight
  141.                 }
  142.                 else{
  143.                     elprops=el
  144.                     elW=el.clip.width
  145.                     elH=el.clip.height
  146.                 }
  147.             }
  148.             if(outEffect)
  149.                 animationId = el.id.substring(9,el.id.length)
  150.             else
  151.                 animationId = el.id.substring(6,el.id.length)
  152.             animation=remSuffix(animationId)
  153.             if(outEffect && (obj != el))
  154.             {
  155.                 if(el.SRCID != obj.id)
  156.                     continue
  157.             }
  158.             if (null != animation )
  159.             {
  160.                 if(ie4 && null!=el.getAttribute(animCancel, false))
  161.                     continue
  162.                 if(!ie4)
  163.                 {
  164.                     elprops.posLeft=elprops.left
  165.                     elprops.posTop=elprops.top
  166.                 }
  167.                 el.startL=offsetLeft(el)
  168.                 if(animation == "flyLeft")
  169.                 {
  170.                     elprops.posLeft = -offsetLeft(el)-elW
  171.                     elprops.posTop = 0
  172.                 }
  173.                 else if(animation == "flyRight" || animation=="elasticRight")
  174.                 {
  175.                     elprops.posLeft = -offsetLeft(el)+docWidth
  176.                     elprops.posTop = 0
  177.                 }
  178.                 else if(animation == "flyTop" || animation == "dropWord")
  179.                 {
  180.                     elprops.posLeft = 0
  181.                     elprops.posTop = scrollOffsetTop-offsetTop(el)-elH
  182.                 }
  183.                 else if(animation == "flyBottom" || animation == "elasticBottom")
  184.                 {
  185.                     elprops.posLeft = 0
  186.                     elprops.posTop = scrollOffsetTop-offsetTop(el)+docHeight 
  187.                 }
  188.                 else if(animation == "flyTopLeft")
  189.                 {
  190.                     elprops.posLeft = -offsetLeft(el)-elW
  191.                     elprops.posTop = scrollOffsetTop-offsetTop(el)-elH
  192.                 }
  193.                 else if(animation == "flyTopRight" || animation == "flyTopRightWord")
  194.                 {
  195.                     elprops.posLeft = -offsetLeft(el)+docWidth
  196.                     elprops.posTop = scrollOffsetTop-offsetTop(el)-elH
  197.                 }
  198.                 else if(animation == "flyCorner")
  199.                 {
  200.                     elprops.posLeft = docWidth*0.2-offsetLeft(el)
  201.                     
  202.                     elprops.posTop = scrollOffsetTop-offsetTop(el)+docHeight 
  203.                 }
  204.                 else if(animation == "flyBottomLeft")
  205.                 {
  206.                     elprops.posLeft = -offsetLeft(el)-elW
  207.                     elprops.posTop = scrollOffsetTop-offsetTop(el)+docHeight
  208.                 }
  209.                 else if(animation == "flyBottomRight" || animation == "flyBottomRightWord")
  210.                 {
  211.                     elprops.posLeft = -offsetLeft(el)+docWidth
  212.                     elprops.posTop = scrollOffsetTop-offsetTop(el)+docHeight
  213.                 }
  214.                 else if(animation == "spiral")
  215.                 {
  216.                     elprops.posLeft = -offsetLeft(el)+docWidth
  217.                     elprops.posTop = scrollOffsetTop-offsetTop(el)+docHeight
  218.                 }
  219.                 else if((animation.indexOf("waveWords") != -1) || animation=="hopWords")
  220.                 {
  221.                     if(i)
  222.                     {
  223.                         prevEl=animateElements[i-1]
  224.                         elprops.r = offsetLeft(el)-prevEl.startL
  225.                     }
  226.                     else
  227.                         elprops.r = offsetLeft(el)
  228.                 }
  229.                 else if(animation == "wipeLR" || animation == "wipeMID")
  230.                 {
  231.                     if (ie4 && elprops.position=="absolute")
  232.                     {
  233.                         el.sizeW=el.offsetWidth
  234.  
  235.                         if(macness < 0)
  236.                             elprops.clip="rect(0 0 0 0)"
  237.                     }
  238.                     else if (!ie4)
  239.                     {
  240.                         if (ns6)
  241.                         {
  242.                             elprops.clip="rect(0 0 0 0)"
  243.                         }
  244.                         else{
  245.                             el.sizeW=el.clip.width
  246.                             el.clip.width=0
  247.                         }
  248.                     }
  249.                 }
  250.                 else if(animation == "wipeTB")
  251.                 {
  252.                     if (ie4 && elprops.position=="absolute")
  253.                     {
  254.                         elprops.clip="rect(0 0 0 0)"
  255.                     }
  256.                     else if(!ie4)
  257.                     {
  258.                         if (ns6)
  259.                         {
  260.                             elprops.clip="rect(0 0 0 0)"
  261.                         }
  262.                         else{
  263.                             el.sizeH=el.clip.height
  264.                             el.clip.height=0
  265.                         }
  266.                     }
  267.                 }
  268.                 else if(animation == "zoomIn")
  269.                 {
  270.                     elprops.posLeft = 0
  271.                     elprops.posTop = 0
  272.                 }
  273.                 else if(animation == "zoomOut")
  274.                 {
  275.                     elprops.posLeft = 0
  276.                     elprops.posTop = 0
  277.                 }
  278.                 else
  279.                 {
  280.                     continue
  281.                 }
  282.                 if(!outEffect)
  283.                 {
  284.                     el.initLeft = elprops.posLeft
  285.                     el.initTop  = elprops.posTop
  286.                     el.endLeft  = 0
  287.                     el.endTop   = 0
  288.                     elprops.visibility = "hidden"
  289.                 }
  290.                 else
  291.                 {
  292.                     el.initLeft = 0
  293.                     el.initTop  = 0
  294.                     el.endLeft = elprops.posLeft
  295.                     el.endTop  = elprops.posTop
  296.                     elprops.posTop = 0
  297.                     elprops.posLeft = 0
  298.                 }
  299.                 if(!ie4)
  300.                 {
  301.                     elprops.left=elprops.initLeft
  302.                     elprops.top =elprops.initTop
  303.                 }
  304.                 animateElements[i++] = el
  305.             }
  306.         }
  307.         if(animateElements.length > 0)
  308.         {
  309.             if(0<=timeout) 
  310.             {
  311.                 window.clearTimeout(timeout);
  312.                 timeout = -1
  313.                 
  314.                 currentElement=0
  315.             }
  316.         
  317.             if(outEffect)
  318.                 timeout = window.setTimeout("animate(1);", speed, "Javascript")
  319.             else
  320.                 timeout = window.setTimeout("animate(0);", speed, "Javascript")
  321.         }
  322.     }
  323.     function offsetLeft(el)
  324.     {
  325.         if(ie4 || ns6)
  326.         {
  327.             x = el.offsetLeft
  328.             for (e = el.offsetParent; e; e = e.offsetParent)
  329.                 x += e.offsetLeft
  330.             return x
  331.         }
  332.         else
  333.         {
  334.             x = el.pageX
  335.             return x
  336.         }
  337.     } 
  338.     function offsetTop(el)
  339.     {
  340.         if(ie4 || ns6)
  341.         {
  342.             y = el.offsetTop
  343.             for (e = el.offsetParent; e; e = e.offsetParent)
  344.                 y += e.offsetTop;
  345.             return y
  346.         }
  347.         else
  348.         {
  349.             y = el.pageY
  350.             return y    
  351.         }
  352.     }
  353.     function startWord(ih, i)
  354.     {
  355.         for(tag = false; i < ih.length; i++)
  356.         {
  357.             c = ih.charAt(i)
  358.             if(c == '<')
  359.             {
  360.                 if(ih.substring(i+1, i+4) == "IMG")
  361.                 return i;
  362.                 tag = true
  363.             }
  364.             if(!tag)
  365.                 return i
  366.             if(c == '>')
  367.                 tag = false
  368.         }
  369.         return -1
  370.     }
  371.     function endWord(ih, i)
  372.     {
  373.         nonSpace = false
  374.         space = false
  375.         img = false
  376.         if(ih.charAt(i) == '<')
  377.         {
  378.             img = true
  379.             i++;
  380.         }
  381.         while(i < ih.length)
  382.         {
  383.             c = ih.charAt(i)
  384.             if(c != ' ')
  385.                 nonSpace = true
  386.             if(img && c == '>')
  387.                 img = false;
  388.             if(nonSpace && !img && c == ' ')
  389.                 space = true
  390.             if(c == '<')
  391.                 return i
  392.             if(space && c != ' ')
  393.                 return i
  394.             i++
  395.         }
  396.         return -1
  397.     }
  398.     function outWord(ih, i1, i2, dyn, anim, srcID)
  399.     {
  400.         if(dyn)
  401.             if(!outEffect)
  402.                 outString += "<SPAN ID=\"" +  fpanimationPrefix + anim + "FP\" style=\"position: relative; visibility: hidden;\">"
  403.             else
  404.                 outString += "<SPAN SRCID=\"" + srcID + "\"ID=\"" +  fpanimationPrefix + anim + "FP\" style=\"position: relative;\">"
  405.         outString += ih.substring(i1, i2)
  406.         if(dyn)
  407.             outString += "</SPAN>"
  408.     }
  409.     function outWordAlt(ih, i1, i2, dyn, anim, altcnt)
  410.     {
  411.         if(dyn)
  412.         {
  413.             if(altcnt%2)
  414.                 outString += "<SPAN ID=\"" +  fpanimationPrefix + anim + "LFP\" style=\"position: relative;  visibility: hidden;\">"
  415.             else
  416.                 outString += "<SPAN ID=\"" +  fpanimationPrefix + anim + "RFP\" style=\"position: relative;  visibility: hidden;\">"
  417.         }
  418.             
  419.         outString += ih.substring(i1, i2)
  420.         if(dyn)
  421.             outString += "</SPAN>"
  422.     }
  423.     function animate(animOut)
  424.     {
  425.         {
  426.             el = animateElements[currentElement]
  427.  
  428.             if(animOut)
  429.                 animationId = el.id.substring(9,el.id.length);
  430.             else
  431.                 animationId = el.id.substring(6,el.id.length);
  432.             animation=remSuffix(animationId)
  433.             if (ie4)
  434.                 elprops=el.style
  435.             else{
  436.                 if (ns6)
  437.                     elprops=el.style
  438.                 else
  439.                     elprops=el
  440.             }
  441.  
  442.             if(!step && !animOut)
  443.                 elprops.visibility="visible"
  444.             step++
  445.             if(animation == "spiral")
  446.             {
  447.                 steps = stepsSpiral
  448.                 v = step/steps
  449.                 rf = 1.0 - v
  450.                 t = v * 2.0*Math.PI
  451.                 rx = Math.max(Math.abs(el.initLeft), 200)
  452.                 ry = Math.max(Math.abs(el.initTop),  200)
  453.                 elprops.posLeft = Math.ceil(-rf*Math.cos(t)*rx)
  454.                 elprops.posTop  = Math.ceil(-rf*Math.sin(t)*ry)
  455.             }
  456.             else if(animation == "waveWordsL" || animation=="hopWords" || animation == "waveWords")
  457.             {
  458.                 steps = stepsSpiralWord
  459.                 v = step/steps
  460.                 rf = (1.0 - v)
  461.                 t = v * 1.0*Math.PI
  462.                 elprops.posLeft = Math.ceil(-rf*Math.cos(t)*elprops.r)
  463.                 elprops.posTop  = Math.ceil(-rf*Math.sin(t)*elprops.r)
  464.             }
  465.             else if(animation == "waveWordsR")
  466.             {
  467.                 steps = stepsSpiralWord
  468.                 v = step/steps
  469.                 rf = (1.0 - v)
  470.                 t = v * 1.0*Math.PI
  471.                 elprops.posLeft = Math.ceil(-rf*Math.cos(t)*elprops.r)
  472.                 elprops.posTop  = Math.ceil( rf*Math.sin(t)*elprops.r)
  473.             }
  474.             else if(animation == "zoomIn")
  475.             {
  476.                 steps = stepsZoom
  477.                 elprops.fontSize = Math.ceil(50+50*step/steps) + "%"
  478.                 elprops.posLeft = 0
  479.             }
  480.             else if(animation == "zoomOut")
  481.             {
  482.                 steps = stepsZoom
  483.                 fontSz=Math.ceil(100+200*(steps-step)/steps) + "%"
  484.                 elprops.fontSize = fontSz
  485.                 elprops.posLeft = 0
  486.             }
  487.             else if(animation == "elasticRight")
  488.             {
  489.                 steps = stepsElastic
  490.                 v = step/steps
  491.                 rf=Math.exp(-v*7)
  492.                 t = v * 1.5*Math.PI
  493.                 rx =Math.abs(el.initLeft)
  494.                 elprops.posLeft = rf*Math.cos(t)*rx
  495.                 elprops.posTop  = 0
  496.             }
  497.             else if(animation == "elasticBottom")
  498.             {
  499.                 steps = stepsElastic
  500.                 v = step/steps
  501.                 rf=Math.exp(-v*7)
  502.                 t = v * 2.5*Math.PI
  503.                 ry =Math.abs(el.initTop)
  504.                 elprops.posLeft = 0
  505.                 elprops.posTop  = rf*Math.cos(t)*ry
  506.             }
  507.             else if(animation == "wipeLR")
  508.             {
  509.                 steps = stepsElastic
  510.                 if(ie4 && elprops.position=="absolute")
  511.                     elprops.clip = "rect(0 "+ step/steps*100 +"% 100% 0)"
  512.                 else if (!ie4)
  513.                 {
  514.                     if (ns6)
  515.                     {
  516.                         postop = elprops.top
  517.                         posleft = elprops.left
  518.                         str="position:absolute;top:"+postop+";left:"+posleft+";clip:rect(0px " + step/steps*el.offsetWidth + "px "+el.offsetHeight+"px 0px)";
  519.                         el.setAttribute("style",str);
  520.                     }
  521.                     else
  522.                         elprops.clip.right=step/steps*el.sizeW
  523.                 }
  524.             }
  525.             else if(animation == "wipeTB")
  526.             {
  527.                 steps = stepsElastic
  528.                 if(ie4 && elprops.position=="absolute")
  529.                     elprops.clip = "rect(0 100% "+step/steps*el.offsetHeight+"px 0)"
  530.                 else{
  531.                     if (ns6)
  532.                     {
  533.                         postop = elprops.top
  534.                         posleft = elprops.left
  535.                         str="position:absolute;top:"+postop+";left:"+posleft+";clip:rect(0px "+ el.offsetWidth + "px " +step/steps*el.offsetHeight+"px 0px)";
  536.                         el.setAttribute("style",str);
  537.                     }
  538.                     else{
  539.                         elprops.clip.bottom=step/steps*el.sizeH        
  540.                     }
  541.                 }
  542.             }
  543.             else if(animation == "wipeMID")
  544.             {
  545.                 steps = stepsElastic
  546.                 if(ie4 && elprops.position=="absolute")
  547.                 {
  548.                     elprops.clip = "rect(0 "+el.sizeW/2*(1+step/steps)+"px 100% "+el.sizeW/2*(1-step/steps)+")"
  549.                 }
  550.                 else if(!ie4)
  551.                 {
  552.                     if (ns6)
  553.                     {
  554.                         postop = elprops.top
  555.                         posleft = elprops.left
  556.                         str="position:absolute;top:"+postop+";left:"+posleft+";clip:rect(0px "+ el.offsetWidth/2*(1+step/steps) + "px "+el.offsetHeight+"px "+el.offsetWidth/2*(1-step/steps)+"px)";
  557.                         el.setAttribute("style",str);    
  558.                     }
  559.                     else{
  560.                         elprops.clip.right=el.sizeW/2*(1+step/steps)
  561.                         elprops.clip.left=el.sizeW/2*(1-step/steps)
  562.                     }
  563.                 }
  564.             }
  565.             else if(animation == "flyCorner")
  566.             {
  567.                 if(!cornerPhase)
  568.                 {
  569.                     steps = stepsElastic/2
  570.                     v = step/steps
  571.                     rf=Math.exp(-v*7)
  572.                     t = v * 2.5*Math.PI
  573.                     ry =Math.abs(el.initTop)
  574.                     elprops.posTop  = Math.ceil(rf*Math.cos(t)*ry)
  575.                 }
  576.                 else
  577.                 {
  578.                     steps = stepsFly
  579.                     dl = el.initLeft / steps
  580.                     elprops.posLeft = elprops.posLeft - dl
  581.                     elprops.posTop = 0
  582.                 }
  583.             }
  584.             else
  585.             {
  586.                 steps = stepsFly
  587.                 if(animation == "dropWord" || animation == "flyTopRightWord" || animation == "flyBottomRightWord")
  588.                     steps = stepsWord
  589.                 dl = (el.endLeft - el.initLeft) / steps
  590.                 dt = (el.endTop  - el.initTop)  / steps
  591.                 elprops.posLeft = elprops.posLeft + dl
  592.                 elprops.posTop = elprops.posTop + dt
  593.             }
  594.             if (step >= steps) 
  595.             {
  596.                 if(!(animation == "wipeLR"    ||
  597.                     animation  == "wipeTB"    ||
  598.                     animation  == "wipeMID"    ||
  599.                     (animation == "flyCorner" && !cornerPhase)))
  600.                 {
  601.                     elprops.posLeft = el.endLeft
  602.                     elprops.posTop = el.endTop
  603.                 }
  604.                 if(animOut)
  605.                 {
  606.                     elprops.visibility="hidden"
  607.                 }
  608.  
  609.                 step = 0
  610.                 if(animation=="flyCorner" && !cornerPhase)
  611.                     cornerPhase=1
  612.                 else
  613.                 {
  614.                     cornerPhase=0
  615.                     currentElement++
  616.                 }
  617.  
  618.             }
  619.             if(!ie4)
  620.             {
  621.                 elprops.left = elprops.posLeft
  622.                 elprops.top = elprops.posTop
  623.             }
  624.             if(currentElement < animateElements.length)
  625.             {
  626.                 if(0<=timeout) 
  627.                 {
  628.                     window.clearTimeout(timeout)
  629.                     timeout = -1
  630.                 }
  631.             
  632.                 if(animOut)
  633.                     timeout = window.setTimeout("animate(1);", speed, "Javascript")
  634.                 else                    
  635.                     timeout = window.setTimeout("animate(0);", speed, "Javascript")
  636.             }
  637.             else
  638.                 currentElement=0
  639.         }
  640.     }
  641.     function rollIn(el)
  642.     {
  643.         var ms = navigator.appVersion.indexOf("MSIE")
  644.         ie4 = (ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >= 4)
  645.         if(ie4)
  646.         {
  647.             el.initstyle=el.style.cssText;
  648.             var newStyle=el.style.cssText+";"+el.fprolloverstyle;
  649.             el.style.cssText=newStyle
  650.         }
  651.     }
  652.     function rollOut(el)
  653.     {
  654.         var ms = navigator.appVersion.indexOf("MSIE")
  655.         ie4 = (ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >= 4)
  656.         if(ie4)
  657.         {
  658.             el.style.cssText=el.initstyle
  659.         }
  660.     }
  661.     function clickSwapStyle(el)
  662.     {
  663.         var ms = navigator.appVersion.indexOf("MSIE")
  664.         ie4 = (ms>0) && (parseInt(navigator.appVersion.substring(ms+5, ms+6)) >= 4)
  665.         if(ie4)
  666.         {
  667.             ts=el.style.cssText
  668.             el.style.cssText=el.fprolloverstyle
  669.             el.fprolloverstyle=ts
  670.         }
  671.     }
  672.     function clickSwapImg(el)
  673.     {
  674.         if(document.all || document.layers)
  675.         {
  676.             ts=el.src
  677.             el.src=el.lowsrc
  678.             el.lowsrc=ts
  679.         }
  680.     }
  681. //-->
  682.